Game Development with GameMaker Studio 2 by Sebastiano M. Cossu
Author:Sebastiano M. Cossu
Language: eng
Format: epub
ISBN: 9781484250105
Publisher: Apress
Note
In the previous code, to check for the sign of hsp, we used the sign function .
sign(num) is a function that given a number num returns 1 if num is greater than 0, -1 if it’s less than zero, and 0 if it’s equal to 0.
Now open up room0 and add two instances of obj_block_brown or obj_block_red to the left and right side of obj_player instance. Running the game, you can verify that obj_player will collide with the blocks being unable to pass over them (Figure 8-5).
Figure 8-5Now we can block Berry using children of obj_block (in this case obj_block_brown)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(11981)
Hello! Python by Anthony Briggs(9429)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9395)
The Mikado Method by Ola Ellnestam Daniel Brolund(9356)
Dependency Injection in .NET by Mark Seemann(8902)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7901)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7422)
Grails in Action by Glen Smith Peter Ledbrook(7336)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7165)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6013)
Kotlin in Action by Dmitry Jemerov(4692)
Practical Vim (for Kathryn Amaral) by Drew Neil(3753)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3630)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3542)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3283)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(3272)
Microservices with Go by Alexander Shuiskov(3055)
Practical Design Patterns for Java Developers by Miroslav Wengner(2971)
Test Automation Engineering Handbook by Manikandan Sambamurthy(2914)
![](/ebook_detail_files/space.gif)